﻿@model KL.Store.Web.Models.PropertiesModel
@using KL.Store.Core
@{
    Layout = null;
}
@if (Model.Properties.Count > 0)
{
    var sira = 1;
    foreach (var item in Model.Properties)
    {
        if (!item.estoregoster)
        {
            continue;
        }
    <div class="product-filter">
        <div class="product-filter-inner">
            <h5 class="product-filter-title">@(item.Aciklama)</h5>
            <div class="product-filter-options product-filter-option-property gray-skin radiotype">
                <ul>
                    @{Html.RenderAction("GetPropertySelectionList", "Products", new { aciklama = item.Aciklama, Kategori = ViewContext.RouteData.Values["id"], siralama = sira });}
                </ul>
                <div class="clearfix"></div>
            </div>
            <div class="clearfix"></div>
        </div>
    </div>
                      sira++;
    }
    <script>
        $(".product-filter-option-property").customScrollbar();
        $(".product-filter-option-property .scroll-bar .thumb").html("<div class=\"thumb-image\"></div>");
        $(".product-filter").not('#allfilters').each(function ()
        {
            if ($(this).find("ul li").length <= 0)
            {
                $(this).remove();
            }
        });
    </script>
}